package base;

import java.awt.geom.Point2D;

public class SingleShipMove extends Object {
	Ship ship;
	Point2D.Double pos;
	Ship[] targets;
	double hp;
	
	public SingleShipMove(Ship ship, Point2D.Double pos)
	{
		this.ship = ship;
		this.pos = pos;
		targets = new Ship[ship.getNumTurrets()];
	}
	
	public void setTarget(int turretIndex, Ship tgt)
	{
		targets[turretIndex] = tgt;
	}
	
	public String toString()
	{
		return "Ship with id " + ship.getGuid() + " -> x:" + pos.x + " y:" + pos.y;
	}
}
